//
//  HotViewController.m
//  FangXinLang
//
//  Created by AJY on 16/9/18.
//  Copyright © 2016年 AJY. All rights reserved.
//

#import "HotViewController.h"
#import "ZJGTableViewController.h"


@interface HotViewController ()

@end

@implementation HotViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    ZJGTableViewController *ta
    =[[ZJGTableViewController alloc]init];

    [self addChildViewController:ta];
    [self.view addSubview:ta.view];

    self.navigationController.navigationBar.hidden=YES;

    UIView *view1=[[UIView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 44)];

    view1.backgroundColor=[UIColor redColor];
    view1.alpha=0;

    [self.view addSubview:view1];

    UILabel *label=[[UILabel alloc]init];
    label.frame=CGRectMake(20, 0, 50, view1.frame.size.height);
    label.text=@"热门";

    label.textColor=[UIColor whiteColor];
    [self.view addSubview:label];

    UIImageView *ima=[[UIImageView alloc]init];
    ima.image=[UIImage imageNamed:@"hot_refresh"];
    ima.frame=CGRectMake(350, 0, 48,48);

    [self.delegate addColor:view1 andimg:ima];
    [self.view addSubview:ima];

}

+(instancetype)allocWithZone:(struct _NSZone *)zone{
    static id instance=nil;
    if (!instance) {
        instance=[super allocWithZone:zone];
    }
    return instance;
}
-(BOOL)prefersStatusBarHidden{
    return YES;
}

@end
